import {defineStore} from "pinia";
import {ref} from "vue";
export const useLastPageStore=defineStore('lastPage',()=>{
        const lastPage=ref('')

        function setLastPage(newId){
            lastPage.value=newId
        }
        function removeLastPage(){
            lastPage.value=''
        }
        return{
            lastPage,setLastPage,removeLastPage
        }
    },
    {
        persist:true
    }
);